package com.ruoyi.supervise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supervise.mapper.ClSafetymeasuresinfoMapper;
import com.ruoyi.supervise.domain.ClSafetymeasuresinfo;
import com.ruoyi.supervise.service.IClSafetymeasuresinfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 施工许可-施工安全具体措施信息Service业务层处理
 * 
 * @author wtj
 * @date 2019-10-14
 */
@Service
public class ClSafetymeasuresinfoServiceImpl implements IClSafetymeasuresinfoService 
{
    @Autowired
    private ClSafetymeasuresinfoMapper clSafetymeasuresinfoMapper;

    /**
     * 查询施工许可-施工安全具体措施信息
     * 
     * @param guid 施工许可-施工安全具体措施信息ID
     * @return 施工许可-施工安全具体措施信息
     */
    @Override
    public ClSafetymeasuresinfo selectClSafetymeasuresinfoById(String guid)
    {
        return clSafetymeasuresinfoMapper.selectClSafetymeasuresinfoById(guid);
    }

    /**
     * 查询施工许可-施工安全具体措施信息列表
     * 
     * @param clSafetymeasuresinfo 施工许可-施工安全具体措施信息
     * @return 施工许可-施工安全具体措施信息
     */
    @Override
    public List<ClSafetymeasuresinfo> selectClSafetymeasuresinfoList(ClSafetymeasuresinfo clSafetymeasuresinfo)
    {
        return clSafetymeasuresinfoMapper.selectClSafetymeasuresinfoList(clSafetymeasuresinfo);
    }

    /**
     * 新增施工许可-施工安全具体措施信息
     * 
     * @param clSafetymeasuresinfo 施工许可-施工安全具体措施信息
     * @return 结果
     */
    @Override
    public int insertClSafetymeasuresinfo(ClSafetymeasuresinfo clSafetymeasuresinfo)
    {
        return clSafetymeasuresinfoMapper.insertClSafetymeasuresinfo(clSafetymeasuresinfo);
    }

    /**
     * 修改施工许可-施工安全具体措施信息
     * 
     * @param clSafetymeasuresinfo 施工许可-施工安全具体措施信息
     * @return 结果
     */
    @Override
    public int updateClSafetymeasuresinfo(ClSafetymeasuresinfo clSafetymeasuresinfo)
    {
        return clSafetymeasuresinfoMapper.updateClSafetymeasuresinfo(clSafetymeasuresinfo);
    }

    /**
     * 删除施工许可-施工安全具体措施信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteClSafetymeasuresinfoByIds(String ids)
    {
        return clSafetymeasuresinfoMapper.deleteClSafetymeasuresinfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除施工许可-施工安全具体措施信息信息
     * 
     * @param guid 施工许可-施工安全具体措施信息ID
     * @return 结果
     */
    public int deleteClSafetymeasuresinfoById(String guid)
    {
        return clSafetymeasuresinfoMapper.deleteClSafetymeasuresinfoById(guid);
    }
}
